import React from 'react';


import classnames from 'classnames';
import ReIcon from '../ReIcon';
// import iconfont from 'libs/font/iconfont.js';
//component



export default class view extends React.Component {
    static propTypes = {
        withoutMask: React.PropTypes.bool,

    };

    static defaultProps = {
        withoutMask: false,
    };

    constructor(props, context) {

        super(props, context);


        // init state;
        this.state = {

        };
    }
    componentWillMount() {
        this._isMounted = true;

    }

    componentDidMount() {

    }

    componentWillUnmount() {
        this._isMounted = false;
    }

    render() {
        const { className, withoutMask, ...rest } = this.props;

        const classNames = classnames({
            'orin-sw-reloading-root': true,
            'mask': !withoutMask,
            [this.props.className]: className ? true : false
        });

        return (
            <div className={classNames} {...rest}>
                <div id="anim">
                    <div className="spinner"></div>
                    <p className="text">{$$.LN.Loading}</p>
                </div>
            </div>
        );
    }
}
